package com.zkthink.ceres.applet.ceresStore.domain.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**

@Author cmz
@Date 2024-04-30 15:39
*/
/**
    * 店铺表
    */
@Data
@TableName(value = "ceres_store")
public class CeresStore {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 会员ID
     */
    @TableField(value = "mid")
    @ApiModelProperty(value = "用户ID")
    private Long mid;

    /**
     * 租户编码
     */
    @TableField(value = "tenant_code")
    @ApiModelProperty(value = "租户编码")
    private String tenantCode;

    /**
     * 店铺名称
     */
    @TableField(value = "store_name")
    @ApiModelProperty(value = "店铺名称")
    private String storeName;

    /**
     * logo
     */
    @TableField(value = "logo")
    @ApiModelProperty(value = "logo")
    private String logo;

    /**
     * 发货地址
     */
    @TableField(value = "ship_address")
    @ApiModelProperty(value = "发货地址")
    private String shipAddress;

    /**
     * 店铺简介
     */
    @TableField(value = "remark")
    @ApiModelProperty(value = "店铺简介")
    private String remark;

    /**
     * 注册手机号
     */
    @TableField(value = "mobile")
    @ApiModelProperty(value = "注册手机号")
    private String mobile;

    /**
     * 退货地址
     */
    @TableField(value = "refund_address")
    @ApiModelProperty(value = "退货地址")
    private String refundAddress;

    /**
     * 退货联系电话
     */
    @TableField(value = "refund_tel")
    @ApiModelProperty(value = "退货联系电话")
    private String refundTel;

    /**
     * 退货联系人
     */
    @TableField(value = "refund_contact")
    @ApiModelProperty(value = "退货联系人")
    private String refundContact;

    /**
     * 是否自动发送退货地址给买家 0否 1是
     */
    @TableField(value = "is_auto_send_refund_address")
    @ApiModelProperty(value = "是否自动发送退货地址给买家 0否 1是")
    private Integer isAutoSendRefundAddress;

    /**
     * 创建人
     */
    @TableField(value = "create_user")
    @ApiModelProperty(value = "创建人")
    private Long createUser;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新人
     */
    @TableField(value = "update_user")
    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**
     * 经度
     */
    @TableField(value = "longitude")
    @ApiModelProperty(value = "经度")
    private String longitude;

    /**
     * 纬度
     */
    @TableField(value = "latitude")
    @ApiModelProperty(value = "纬度")
    private String latitude;

    /**
     * 省
     */
    @TableField(value = "province")
    @ApiModelProperty(value = "省")
    private String province;

    /**
     * 市
     */
    @TableField(value = "city")
    @ApiModelProperty(value = "市")
    private String city;

    /**
     * 区
     */
    @TableField(value = "area")
    @ApiModelProperty(value = "区")
    private String area;

    @TableField(value = "province_code")
    private String provinceCode;

    @TableField(value = "city_code")
    private String cityCode;

    @TableField(value = "area_code")
    private String areaCode;

    /**
     * 地址详情
     */
    @TableField(value = "address")
    @ApiModelProperty(value = "地址详情")
    private String address;

    /**
     * 1汽修店，2保养店，3美容店，4贴膜店，5洗车店，6轮胎更换店，7救援店，8加油站
     */
    @TableField(value = "store_type")
    @ApiModelProperty(value = "1汽修店，2保养店，3美容店，4贴膜店，5洗车店，6轮胎更换店，7救援店，8加油站")
    private Integer storeType;

    /**
     * 1=正常 2=关闭
     */
    @TableField(value = "store_state")
    @ApiModelProperty(value = "1=正常 2=关闭")
    private Integer storeState;

    /**
     * 订单数量
     */
    @TableField(value = "order_quantity")
    @ApiModelProperty(value = "订单数量")
    private Integer orderQuantity;

    /**
     * 到期时间
     */
    @TableField(value = "expiration_time")
    @ApiModelProperty(value = "到期时间")
    private Date expirationTime;

    /**
     * 联系电话
     */
    @TableField(value = "telephone")
    @ApiModelProperty(value = "联系电话")
    private String telephone;

    /**
     * 营业时间
     */
    @TableField(value = "business_hours")
    @ApiModelProperty(value = "营业时间")
    private String businessHours;

    /**
     * 店面照
     */
    @TableField(value = "storefront_img")
    @ApiModelProperty(value = "店面照")
    private String storefrontImg;

    /**
     * 店面背景
     */
    @TableField(value = "background_img")
    @ApiModelProperty(value = "店面背景")
    private String backgroundImg;

    /**
     * 营业额
     */
    @TableField(value = "turnover")
    @ApiModelProperty(value = "营业额")
    private BigDecimal turnover;

    /**
     * 被访问的次数
     */
    @TableField(value = "frequency")
    @ApiModelProperty(value = "被访问的次数")
    private Integer frequency;

    /**
     * 是否删除 1-删除 0-不删除
     */
    @TableField(value = "is_delete")
    @ApiModelProperty(value = "是否删除 1-删除 0-不删除")
    @TableLogic(value = "0",delval = "1")
    private Integer isDelete;

    public static final String COL_ID = "id";

    public static final String COL_MID = "mid";

    public static final String COL_TENANT_CODE = "tenant_code";

    public static final String COL_STORE_NAME = "store_name";

    public static final String COL_LOGO = "logo";

    public static final String COL_SHIP_ADDRESS = "ship_address";

    public static final String COL_REMARK = "remark";

    public static final String COL_MOBILE = "mobile";

    public static final String COL_REFUND_ADDRESS = "refund_address";

    public static final String COL_REFUND_TEL = "refund_tel";

    public static final String COL_REFUND_CONTACT = "refund_contact";

    public static final String COL_IS_AUTO_SEND_REFUND_ADDRESS = "is_auto_send_refund_address";

    public static final String COL_CREATE_USER = "create_user";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_USER = "update_user";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_LONGITUDE = "longitude";

    public static final String COL_LATITUDE = "latitude";

    public static final String COL_PROVINCE = "province";

    public static final String COL_CITY = "city";

    public static final String COL_AREA = "area";

    public static final String COL_PROVINCE_CODE = "province_code";

    public static final String COL_CITY_CODE = "city_code";

    public static final String COL_AREA_CODE = "area_code";

    public static final String COL_ADDRESS = "address";

    public static final String COL_STORE_TYPE = "store_type";

    public static final String COL_STORE_STATE = "store_state";

    public static final String COL_ORDER_QUANTITY = "order_quantity";

    public static final String COL_EXPIRATION_TIME = "expiration_time";

    public static final String COL_TELEPHONE = "telephone";

    public static final String COL_BUSINESS_HOURS = "business_hours";

    public static final String COL_STOREFRONT_IMG = "storefront_img";

    public static final String COL_BACKGROUND_IMG = "background_img";

    public static final String COL_TURNOVER = "turnover";

    public static final String COL_FREQUENCY = "frequency";

    public static final String COL_IS_DELETE = "is_delete";
}